
axios.interceptors.request.use(req => {
    return req;
})
axios.interceptors.response.use(resp => {
    if(resp.data == "notLogin") {
        alert("用户未登录")
        setInterval(function () {
            window.location.href = "../login.html"
        }, 1000)
    }
    return resp;
})

